<section class="page team-manage-page">
  <div class="title row between-span middle-span">
    团队管理
    <button nz-button [nzType]="'primary'" nzSize="small">
      <span routerLink="/report-manage">返回</span>
    </button>
  </div>

  <div class="command">
    <a routerLink="/team-detail">添加团队</a>
  </div>
  <div nz-row [nzGutter]="16">
    <div nz-col [nzMd]="24">
      <nz-card>
        <ng-template #body>
          <nz-table #nzTable [nzAjaxData]="dataSet" [nzShowSizeChanger]="true" [nzLoading]="page.loading" [nzTotal]="page.total" [(nzPageIndex)]="page.pageIndex"
            (nzPageIndexChange)="refreshData()" [(nzPageSize)]="page.pageSize" (nzPageSizeChange)="refreshData()">
            <thead nz-thead>
              <tr>
                <th nz-th>
                  <span>团队名称</span>
                </th>
                <!-- <th nz-th>
                <span>团队人数</span>
              </th>
              <th nz-th>
                <span>项目数</span>
              </th> -->
                <th nz-th>
                  <span>管理员</span>
                </th>
                <th nz-th>
                  <span>操作</span>
                </th>
              </tr>
            </thead>
            <tbody nz-tbody>
              <tr nz-tbody-tr *ngFor="let data of nzTable.data">
                <td nz-td>{{data.name}}</td>
                <!-- <td nz-td>{{data.userNumber}}</td>
              <td nz-td>{{data.projectNumber}}</td> -->
                <td nz-td>{{data.admin}}</td>
                <td nz-td>
                  <a [routerLink]="['/team-detail',{id:data.id}]">查看</a>
                </td>
              </tr>
            </tbody>
          </nz-table>
        </ng-template>
      </nz-card>
    </div>
  </div>
</section>
